#include <stdio.h>
#include "stack.h"
#include "queue.h"
#include "heap.h"

int main ()
{
    heap        h;
    float       i = 0;
    srandom (5);
    h = make_heap(5);

    while (heap_notfull(h))
    {
        i = random();
        printf ("%g\n", i);
        heap_update (h, i, NULL);
    }
    print_heap (h);

    heap_destroy (h);

    return 0;
}
